package com.example.jin.myapplication;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.example.jin.myapplication.NerdLauncher.NerdLauncherActivity;
import com.example.jin.myapplication.beatbox.BeatBoxActivity;

/**
 * Created by jin on 2016/6/17.
 */
public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_layout);
    }
    public void onClicked(View view){
        switch (view.getId()){
            case R.id.button1: {
                Intent intent=new Intent(MainActivity.this,CrimeListActivity.class);
                startActivity(intent);
            }
                break;
            case R.id.button2:
            {
                Intent intent=new Intent(MainActivity.this, BeatBoxActivity.class);
                startActivity(intent);
            }
                break;
            case R.id.button3:
            {
                Intent intent=new Intent(MainActivity.this, NerdLauncherActivity.class);
                startActivity(intent);
            }
            break;
        }
    }
}
